/**
 * Created by Administrator on 2016/9/6.
 */
//listModule分页面模块名
angular.module('listModule',['listService'])
    //listController 分页面控制器  $stateParams传入的参数
    .controller('listController',['$scope','$stateParams','listFactory',function ($scope,$stateParams,listFactory) {
        $scope.type=$stateParams.type;
        var httpPromise=listFactory.getData();
        httpPromise.then(function (response) {
            $scope.list=response.data;
            console.log($scope.list);

        })
    }])